package cn.tmpan.enums;

/**
 * 请求状态枚举参数
 */

public enum ResponseCode {
    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),
    NEED_LOGIN(10,"NEED_LOGIN"),
    ILEGAL_ARGUMENT(2,"ILEGAL_ARGUMENT"),
    DATASOURCE_ERROR(3,"DATABASE ERROR");

    private  final int code;
    private  final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }
}
